
/**
 * 我的课程
 * @returns
 */
export const useFindMyDownloadsPageApi = (body) => {
    return useHttpPost("/v1/user/center/downloads/list",{body})
}


/**
 * 收藏课程
 * @returns
 */
export const useFindDownloadsUserFavPageApi = (body) => {
    return useHttpPost("/v1/user/center/downloads/fav",{body})
}

/**
 * 喜欢课程
 * @returns
 */
export const useFindDownloadsUserLikePageApi = (body) => {
    return useHttpPost("/v1/user/center/downloads/like",{body})
}

/**
 * 足迹课程
 * @returns
 */
export const useFindMyDownloadsBroswerPageApi = (body) => {
    return useHttpPost("/v1/user/center/downloads/broswer",{body})
}

/**
 * 取消收藏
 * @returns
 */
export const useCancelFavDownloadsApi = (id) => {
    return useHttpPost(`/v1/user/center/downloads/cancel/fav?id=${id}`,{})
}

/**
 * 取消点赞
 * @returns
 */
export const useCanceLikeDownloadsApi = (id) => {
    return useHttpPost(`/v1/user/center/downloads/cancel/like?id=${id}`,{})
}

/**
 * 删除浏览记录
 * @returns
 */
export const useRemoveDownloadsHitsApi = (id) => {
    return useHttpPost(`/v1/user/center/downloads/remove/broswer?id=${id}`,{})
}
